package com.open.capacity.notice.provider.sms.interactive.res;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.open.capacity.notice.provider.core.http.interactive.res.ThResponse;

import lombok.Data;

/**
 * 短信响应结果
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = false)
public class SmsResponse extends ThResponse{
	
	@JsonProperty("msg")
	private String message;

	public boolean isSuccess() {
		return "0".equals(getCode())  == true;
	}

}
